<div id="editZSetMemberModal" class="modal hide fade">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>Edit Set Member</h3>
  </div>
  <div class="modal-body">
    <form id="editZSetMemberForm" action="apiv2/zset/member/edit" method="POST" class="form-vertical">
      <label class="control-label" for="zSetKey">Key</label>
      <input id="zSetKey" name="key" type="text" class="modal-content-width" readonly/>
      <label class="control-label" for="zSetScore">Score</label>
      <input id="zSetScore" name="score" type="text"/>
      <label class="control-label" for="zSetValue">Value</label>
      <textarea id="zSetValue" name="value" class="modal-content-width" style="height: 150px;"></textarea>
      <label class="checkbox"><input type="checkbox" id="zSetValueIsJson" name="isJson">Validate as JSON</label>
      <input id="zSetOldValue" name="oldValue" type="hidden"/>
      <input id="zSetConnectionId" name="connectionId" type="hidden"/>
    </form>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal">Close</button>
    <button id="removeZSetValueButton" class="btn btn-danger" data-loading-text="<i class='icon-refresh'></i> Removing..." onclick="removeZSetElement()">Remove Element</button>
    <button id="editZSetValueButton" class="btn btn-primary" data-loading-text="<i class='icon-refresh'></i> Saving..." onclick="$('#editZSetMemberForm').trigger('submit')">Save</button>
  </div>
</div>
<script>
  setupEditDataModals('editZSetMemberForm', 'editZSetValueButton');
  setupJsonInputValidator('zSetValueIsJson', 'zSetValue');
  registerModalFocus('editZSetMemberModal', 'zSetScore');
</script>
